package com.example.zxw.datalayer.source

import com.example.zxw.db.ChannelDaoHelper
import com.example.zxw.entity.ChannelEntity
import com.example.zxw.entity.NewsListEntity

class NewsLocalSource {

    fun getChannelList(): List<ChannelEntity>? {
        return ChannelDaoHelper.getChannelList()
    }

    /**
     * 更新本地频道数据
     */
    fun updateLocalChannelList(list: List<ChannelEntity>) {
        ChannelDaoHelper.updateChannelList(list)
    }

    /**
     * 获取本地新闻列表
     */
    fun getNewsList(cname: String, pageIndex: Int): List<NewsListEntity>? {
        return null;
    }
}